package com.project;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * 客户端
 */
public class Client {
    public Client() {
        try {
//            开端口
            ServerSocket serverSocket = new ServerSocket(9009);
            Socket socket = serverSocket.accept();
            while (true) {
                new ServerThread(socket);

            }


        } catch (IOException e) {
            throw new RuntimeException(e);
        }


    }


    public static void main(String[] args) {
        new Client();
    }


}
